{% extends "global/Page.html" %}
{% load otree static %}

{% block title %}
    第四轮
{% endblock %}
{% block content %}
    <div class="card bg-light m-3">
    <div class="card-body">
        <div>
            <p>上一轮的任务已经结束了，接下来是新一轮的任务。请注意在这一轮中环境<b>发生的变化</b>。</p>
            <p>你还是要和两个人竞争游戏币，
                同样的如果没有满足分钱游戏的规则，在进入下一次分钱之前游戏币还是会<b>减少6</b></p>
            <p>另外</p>
            <p>希望您<b>注意本轮游戏的变化</b></p>
            <p>①你提议的时间有<span style="color: red">充足的一分钟</span>，这在过去的研究中表明这是一个很长的时间，请谨慎做出您的选择。。</p>
            <p>②和你竞争游戏币的两个人重新随机匹配了，不再是之前分钱游戏中的对手。</p>
            <p>③如果您选择自己拿奖金，可以点击退出游戏。其他人会获得0，你获得64。</p>
            {#    下面二个标签显示自己和对方的身份！#}
            {#            <p>您的身份是： <span style="color: red">#}
            {#                    {% if player.id_in_subsession == player.session.vars.r1 %}#}
            {#                        红组#}
            {#                    {% endif %}#}
            {#                {% if player.id_in_subsession == player.session.vars.r2 %}#}
            {#                    红组#}
            {#                {% endif %}#}
            {#                {% if player.id_in_subsession == player.session.vars.r3 %}#}
            {#                    红组#}
            {#                {% endif %}#}
            {#                {% if player.id_in_subsession == player.session.vars.r4 %}#}
            {#                    红组#}
            {#                {% endif %}#}
            {#                {% if player.id_in_subsession == player.session.vars.r5 %}#}
            {#                    红组#}
            {#                {% endif %}#}
            {#                {% if player.id_in_subsession == player.session.vars.r6 %}#}
            {#                    红组#}
            {#                {% endif %}#}
            {#                </span>#}
            {#                <span style="color: blue">#}
            {#                    {% if player.id_in_subsession == player.session.vars.b1 %}#}
            {#                        蓝组#}
            {#                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.b2 %}#}
            {#                        蓝组#}
            {#                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.b3 %}#}
            {#                        蓝组#}
            {#                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.b4 %}#}
            {#                        蓝组#}
            {#                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.b5 %}#}
            {#                        蓝组#}
            {#                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.b6 %}#}
            {#                        蓝组#}
            {#                    {% endif %}#}
            {#                </span>#}
            {#                <span style="color:green;">#}
            {#                                    {% if player.id_in_subsession == player.session.vars.g1 %}#}
            {#                                        绿组#}
            {#                                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.g2 %}#}
            {#                        绿组#}
            {#                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.g3 %}#}
            {#                        绿组#}
            {#                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.g4 %}#}
            {#                        绿组#}
            {#                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.g5 %}#}
            {#                        绿组#}
            {#                    {% endif %}#}
            {#                    {% if player.id_in_subsession == player.session.vars.g6 %}#}
            {#                        绿组#}
            {#                    {% endif %}#}
            {#                </span></p>#}
            {#            <p>分钱人A的身份是:#}
            {#                {% for p in player.get_others_in_group %} {# 没想到怎么提取 用for来提取集合的列表了 #}
            {##}
            {#                根据索引值 player.get_others_in_group.0就是数组的第一个值 1是第二个#}
            {#                    {% if  player.get_others_in_group.0 == p %}#}
            {#                        <span style="color: red">{% if  p.id_in_subsession  == player.session.vars.r1 %}#}
            {#                            红组#}
            {#                        {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r2 %}#}
            {#                                红组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r3 %}#}
            {#                                红组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r4 %}#}
            {#                                红组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r5 %}#}
            {#                                红组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r6 %}#}
            {#                                红组#}
            {#                            {% endif %}</span>#}
            {#                        <span style="color:blue;">                    {% if p.id_in_subsession == player.session.vars.b1 %}#}
            {#                            蓝组#}
            {#                        {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b2 %}#}
            {#                                蓝组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b3 %}#}
            {#                                蓝组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b4 %}#}
            {#                                蓝组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b5 %}#}
            {#                                蓝组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b6 %}#}
            {#                                蓝组#}
            {#                            {% endif %}</span>#}
            {#                        <span style="color:green;">                    {% if p.id_in_subsession == player.session.vars.g1 %}#}
            {#                            绿组#}
            {#                        {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g2 %}#}
            {#                                绿组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g3 %}#}
            {#                                绿组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g4 %}#}
            {#                                绿组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g5 %}#}
            {#                                绿组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g6 %}#}
            {#                                绿组#}
            {#                            {% endif %}</span>#}
            {#                        和#}
            {#                    {% endif %}#}
            {#                {% endfor %}#}
            {#                &nbsp&nbsp&nbsp&nbsp分钱人B的身份是:#}
            {#                {% for p in player.get_others_in_group %}#}
            {#                    {% if  player.get_others_in_group.1 == p %}#}
            {#                        <span style="color: red">{% if  p.id_in_subsession  == player.session.vars.r1 %}#}
            {#                            红组#}
            {#                        {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r2 %}#}
            {#                                红组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r3 %}#}
            {#                                红组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r4 %}#}
            {#                                红组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r5 %}#}
            {#                                红组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.r6 %}#}
            {#                                红组#}
            {#                            {% endif %}</span>#}
            {#                        <span style="color:blue;">                    {% if p.id_in_subsession == player.session.vars.b1 %}#}
            {#                            蓝组#}
            {#                        {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b2 %}#}
            {#                                蓝组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b3 %}#}
            {#                                蓝组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b4 %}#}
            {#                                蓝组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b5 %}#}
            {#                                蓝组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.b6 %}#}
            {#                                蓝组#}
            {#                            {% endif %}</span>#}
            {#                        <span style="color:green;">                    {% if p.id_in_subsession == player.session.vars.g1 %}#}
            {#                            绿组#}
            {#                        {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g2 %}#}
            {#                                绿组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g3 %}#}
            {#                                绿组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g4 %}#}
            {#                                绿组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g5 %}#}
            {#                                绿组#}
            {#                            {% endif %}#}
            {#                            {% if p.id_in_subsession == player.session.vars.g6 %}#}
            {#                                绿组#}
            {#                            {% endif %}</span>#}
            {#                    {% endif %}#}
            {#                {% endfor %}#}
            {#            </p>#}
            {#            <p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;由于你在团体游戏中的突出贡献，我们看到了你为团体奋斗的决心，决定奖励给你300块钱，同时其他团队中的两个人表现的也不错，#}
            {#                所以你要把这300块在你们3人之间分配，你漠然的看着他们俩，不知道怎么分，他们提议每个人背对背作出自己的选择，然后公布出来，你也只好答应。#}
            {#            </p>#}
            <p style="text-align: center">游戏流程</p>
            <img src="{% static 'picture/introduct.jpg' %}" width="852" height="1186"/>

        </div>
    </div>



    {#    <div>#}
    {##}
    {#        <p>您队友的身份是:#}
    {#            {% for p in player.get_others_in_group %}#}
    {##}
    {#                根据索引值 player.get_others_in_group.0就是数组的第一个值 1是第二个#}
    {#                {% if  player.get_others_in_group.0 == p %}#}
    {#                    <span style="color: red">{% if  p.id_in_subsession  == player.session.vars.r1 %}#}
    {#                        红组#}
    {#                    {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r2 %}#}
    {#                            红组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r3 %}#}
    {#                            红组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r4 %}#}
    {#                            红组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r5 %}#}
    {#                            红组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r6 %}#}
    {#                            红组#}
    {#                        {% endif %}</span>#}
    {#                    <span style="color:blue;">                    {% if p.id_in_subsession == player.session.vars.b1 %}#}
    {#                        蓝组#}
    {#                    {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b2 %}#}
    {#                            蓝组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b3 %}#}
    {#                            蓝组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b4 %}#}
    {#                            蓝组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b5 %}#}
    {#                            蓝组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b6 %}#}
    {#                            蓝组#}
    {#                        {% endif %}</span>#}
    {#                    <span style="color:green;">                    {% if p.id_in_subsession == player.session.vars.g1 %}#}
    {#                        绿组#}
    {#                    {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g2 %}#}
    {#                            绿组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g3 %}#}
    {#                            绿组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g4 %}#}
    {#                            绿组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g5 %}#}
    {#                            绿组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g6 %}#}
    {#                            绿组#}
    {#                        {% endif %}</span>#}
    {#                    和#}
    {#                {% endif %}#}
    {#                {% if  player.get_others_in_group.1 == p %}#}
    {#                    <span style="color: red">{% if  p.id_in_subsession  == player.session.vars.r1 %}#}
    {#                        红组#}
    {#                    {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r2 %}#}
    {#                            红组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r3 %}#}
    {#                            红组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r4 %}#}
    {#                            红组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r5 %}#}
    {#                            红组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.r6 %}#}
    {#                            红组#}
    {#                        {% endif %}</span>#}
    {#                    <span style="color:blue;">                    {% if p.id_in_subsession == player.session.vars.b1 %}#}
    {#                        蓝组#}
    {#                    {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b2 %}#}
    {#                            蓝组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b3 %}#}
    {#                            蓝组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b4 %}#}
    {#                            蓝组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b5 %}#}
    {#                            蓝组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.b6 %}#}
    {#                            蓝组#}
    {#                        {% endif %}</span>#}
    {#                    <span style="color:green;">                    {% if p.id_in_subsession == player.session.vars.g1 %}#}
    {#                        绿组#}
    {#                    {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g2 %}#}
    {#                            绿组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g3 %}#}
    {#                            绿组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g4 %}#}
    {#                            绿组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g5 %}#}
    {#                            绿组#}
    {#                        {% endif %}#}
    {#                        {% if p.id_in_subsession == player.session.vars.g6 %}#}
    {#                            绿组#}
    {#                        {% endif %}</span>#}
    {#                {% endif %}#}
    {#            {% endfor %}#}
    {#        </p>#}
    {#    </div>#}
    {% next_button %}

{% endblock %}
